package org.tvolkov.mycompany

class Employee {
	String name;
	Date hireDate;
	String skills;
	String phone;
	String email;
	
	Project project;
	
	static belongsTo = [project: Project]
	
    static constraints = {
		name blank: false, unique: true
		hireDate nullable: true
		skills nullable: true
		phone nullable: true
		email email: true, nullable: true
    }
	
	String toString(){
		return name;
	}
}
